package cn.itsource.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.time.LocalDate;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author wen'ge
 * @since 2022-03-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_tenant")
@ApiModel(value="Tenant对象", description="")
public class Tenant extends Model<Tenant> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "机构类型ID")
    private Long tenantTypeId;

    @ApiModelProperty(value = "机构名称")
    private String companyName;

    @ApiModelProperty(value = "机构编号")
    private String companyNum;

    @ApiModelProperty(value = "注册时间")
    private LocalDate registerTime;

    @ApiModelProperty(value = "机构状态：0审核中；1审核通过；2审核不通过")
    private Boolean state;

    private String address;

    @ApiModelProperty(value = "机构logoURL地址")
    private String logo;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
